package day17_Inet.demo01_IP;

import java.net.InetAddress;

public class InetAddress_aaacopy {
    public static void main(String[] args) throws Exception{
        InetAddress name = InetAddress.getByName("192.168.3.172");
        String hostAddress = name.getHostAddress();
        String hostName = name.getHostName();
        System.out.println(hostAddress);
        System.out.println(hostName);
    }
}
